home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / recent / mcf4amrc.lha / MCF4AmIRC / Rexx / MCF_DO.AMIRX < prev    next >
Text File  |  1996-09-17  |  953b  |  10 lines

  1. /* MCF_DO.AMIRX
  2. // $VER: MCF_DO.AMIRX 4.1 (29.07.96)
  3. \\ Written by Donald T. Becker (dtbecker@prolog.net) IRC: StarDustr
  4. // Please mail any bug reports/comments to the above address with a subject
  5. \\ header of MCF.AMIRX.
  6. //
  7. \\ ** What to do with this file?
  8. // Put this script in REXX:        It will be used by MCF.AMIRX.
  9. */
  10. ;arg MCFenv MyNick Unick CurCh junk Rnick junk;address value(MCFenv);options results;userhost Rnick;IPAddr=upper(result);atpos=pos("@",IPAddr)+1;IPAddr=substr(IPAddr,atpos);xl=length(IPAddr);userhost MyNick;if right(upper(result),xl)=IPAddr then;do;userhost Unick;if right(upper(result),xl) ~=IPAddr then exit;end;Client=substr(MCFenv,pos(".",MCFenv)+1);CName=CurCh||"."||Client;ChUs=getclip(value(CName));URnick=upper(Rnick)||" ";if 0=pos(URnick,ChUs)|Rnick="" then;do;"RAW PRIVMSG "Unick" :You cannot De-OP "|| d2c(2)||Rnick||"." Rnick|| d2c(2) "is not on"|| d2c(2) CurCh;exit;end;if Rnick ~=MyNick then "say /deop "CurCh Rnick;exit